package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yuandian.api.management.validate.InsertFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 脱敏字段配置表-实体
 * @author zfsn
 * @date 2023-6-7
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "脱敏字段配置表", description = "")
@TableName("conf_data_mask_config")
public class ConfDataMaskConfig extends BasePage<ConfDataMaskConfig> {

    /**
     * 
     */
    @NotNull(message = "id不能为空", groups = {InsertFlag.class})
    @ApiModelProperty(value = "ID", notes = "")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @ApiModelProperty(value = "脱敏字段名称", notes = "")
    private String name;

    /**
     * 
     */
    @ApiModelProperty(value = "脱敏字段编码", notes = "")
    private String code;

    /**
     * 
     */
    @ApiModelProperty(value = "脱敏开始位置", notes = "")
    private Integer startIndex;

    /**
     * 
     */
    @ApiModelProperty(value = "脱敏长度", notes = "")
    private Integer length;

    /**
     * 1:脱敏 0:不脱敏
     */
    @ApiModelProperty(value = "展示是否脱敏", notes = "1:脱敏 0:不脱敏")
    private Integer showFlag;

    /**
     * 1:脱敏 0:不脱敏
     */
    @ApiModelProperty(value = "导出是否脱敏", notes = "1:脱敏 0:不脱敏")
    private Integer exportFlag;

}